<?php
    function get_thumbnail($w,$h,$filename)
    {
        $pic_arr = explode('.',$filename);
        $thumbnail = 'thumbnail/'.$pic_arr[0].'_'.$w.'x'.$h.'_exacttop.'.$pic_arr[1]; 

        return $thumbnail;
    }
?>
